package cn.tellsea.service;

import cn.tellsea.entity.AjaxResult;
import cn.tellsea.entity.BizStorage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 库存表 服务类
 * </p>
 *
 * @author Tellsea
 * @since 2021-12-31
 */
public interface IBizStorageService extends IService<BizStorage> {

    /**
     * 扣减库存
     *
     * @param productId
     * @param count
     * @return
     */
    AjaxResult decrease(Long productId, Integer count);
}
